﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() +"://"+ request.getServerName()
            +":"+request.getServerPort()+path;
%>
<!DOCTYPE html>
<html lang="zh-cn">
	
<style type="text/css">
    	#preview{
width:100px;
height:100px;
margin:20px auto;
cursor: pointer;
}
    </style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="<%=basePath%>/css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="<%=basePath%>/js/jquery-2.1.0.js"></script>
<script src="<%=basePath%>/js/pintuer.js"></script>
<script src="<%=basePath%>/js/ajaxfileupload.js" type="text/javascript" charset="utf-8"></script>

</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加教师</strong></div>
  <div class="body-content">
    <form method="post" action="<%=basePath%>/tea/save" class="form-x" >
     <input name="id" type="hidden" value="${te.id}">
        <div class="form-group">
        <div class="label">
          <label>教师编号：</label>
        </div>
        <div class="field">
          <input   type="text" class="input w50" value="${te.sno}" name="sno" data-validate="required:请输入教师名称" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>教师名称：</label>
        </div>
        <div class="field">
          <input  type="text" class="input w50" value="${te.name}" name="name" data-validate="required:请输入教师名称" />
          <div class="tips"></div>
        </div>
      </div>
      
   
          
      
        <div class="form-group">
          <div class="label">
            <label>所属年级：</label>
          </div>
          <div class="field">
            <select  id="gidselect"  name="banji" class="input w50">
                  <option value="">请选择</option>
                <option value="1" <c:if test="${te.banji==1}">selected</c:if> >小学一年级</option>
              <option value="2" <c:if test="${te.banji==2}">selected</c:if>  >小学二年级</option>
              <option value="3" <c:if test="${te.banji==3}">selected</c:if> >小学三年级</option>
              <option value="4" <c:if test="${te.banji==4}">selected</c:if> >小学四年级</option>


            </select>
            <div class="tips"></div>
          </div>
        </div>
        
        <div class="form-group">
          <div class="label">
            <label>所属课程：</label>
          </div>
            <div class="field">
                <input  type="text" value="${te.kecheng}" class="input w50"  name="kecheng" data-validate="required:请输入教师名称" />
                <div class="tips"></div>
            </div>
        </div>
        
         
      <div class="form-group">
        <div class="label">
          <label>教师简介：</label>
        </div>
        <div class="field">
          <textarea   id="teacherintro" class="input" name="jianjie" style="height: 151px; width: 280px;">${te.jianjie}</textarea>
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
         <input  class="button bg-main icon-check-square-o"  style="text-align: center;"  type="submit" name="back" value="确定提交"/>
        </div>
      </div>
    </form>
  </div>
</div>

</body>




</html>